package com.itheima.dao;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author: libin
 * @date: 2019/11/25 10:30
 * @version: 1.0
 * @describe:
 */
public interface OrderSettingDao {

    long findNumberByDate(@Param("orderDate") Date orderDate);

    void editNumberByDate(@Param("orderSetting") OrderSetting orderSetting);

    void addNumberByDate(@Param("orderSetting") OrderSetting orderSetting);

    List<OrderSetting> getOrderSettingByMonth(@Param("map") Map map);

    OrderSetting findByDate(@Param("orderDate") Date orderDate);

    int updateReservations(OrderSetting orderSetting);
}
